/**
 * Authors:
 * Vladimír Matěna
 * Jan Skalický
 */
package inireader;

/**
 * Class used for limiting values of property elements.
 */
public abstract class Restriction
{
	/**
	 * Property restricted by this class.
	 */
	protected Property property;

	/**
	 * Creates restriction for property.
	 * @param property for this property
	 */
	public Restriction(Property property)
	{
		this.property = property;
	}

	/**
	 * Validates value, in case of bad formatting throws exception.
	 * @param value value to validate
	 */
	public abstract void validateRestrictedValue(String value);
}
